package com.heima.behavior.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 行为:点赞表
 */
@Data
@Document("ap_likes_behavior")
public class ApLikesBehavior {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    /**
     * 实体ID
     */
    private Long userId;

    /**
     * 文章ID
     */
    private Long articleId;

    /**
     * 点赞内容类型
     * 0文章
     * 1动态
     */
    private Integer type;

    /**
     * 登录时间
     */
    private Date createdTime;
}
